<template>
  <div style="padding: 0 40px">
    <div>
      <div class="addDoctorTitle">套餐规则</div>
      <div class="flexSpace" style="padding: 16px 0 34px 0">
        <div>
          <el-select v-model="packgeValue" style="width: 200px" placeholder="请选择">
            <el-option
              v-for="item in packgeRuleArr"
              :key="item.id"
              :label="item.packageName"
              :value="item.id"
            >
            </el-option>
          </el-select>
        </div>
        <div>
          <el-checkbox
            v-model="packgeCheck"
            label="使用系统规则"
            border
            style="width: 200px"
          ></el-checkbox>
        </div>
      </div>
      <div></div>
    </div>
    <div>
      <div class="addDoctorTitle">产品规则</div>
      <div class="flexSpace" style="padding: 16px 0 0 0">
        <div>
          <el-select v-model="productValue" style="width: 200px" placeholder="请选择">
            <el-option
              v-for="item in productRuleArr"
              :key="item.id"
              :label="item.value"
              :value="item.id"
            >
            </el-option>
          </el-select>
        </div>
        <div>
          <el-checkbox
            v-model="productCheck"
            label="使用系统规则"
            border
            style="width: 200px"
          ></el-checkbox>
        </div>
      </div>
      <div></div>
    </div>

  </div>
</template>

<script>
// 获取字典
import { getDictMap } from '@/api/system/dictDetail';
// import { getPackgeRule, editDoctor } from '@/api/operDocterAdmin';
import { getPackgeRule } from '@/api/operDocterAdmin';
export default {
  components: {},
  data() {
    return {
      options: [
        {
          value: '选项1',
          label: '黄金糕'
        },
        {
          value: '选项2',
          label: '双皮奶'
        },
        {
          value: '选项3',
          label: '蚵仔煎'
        },
        {
          value: '选项4',
          label: '龙须面'
        },
        {
          value: '选项5',
          label: '北京烤鸭'
        }
      ],
      packgeRuleArr: [],
      productRuleArr: [],
      packgeValue: '',
      productValue: '',
      packgeCheck: false,
      productCheck: false
    };
  },
  mounted() {
    // 查询套餐规则
    getPackgeRule().then(e => {
      this.packgeRuleArr = e;
    });
    // 查询产品规则
    getDictMap('package_rule').then((e) => {
      // this.genderList = e.gender;
      this.productRuleArr = e.package_rule;
    });
  },
  methods: {

  }
};
</script>

<style scoped lang='scss'>
</style>
